package com.lagou.consumer;

import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * 消费者类
 * @author 陶肖寅
 * @version V1.0
 * @Package com.lagou.consumer
 * @email fromlx@126.com
 * @date 2020-04-16 23:32
 * @Copyright © 2020-2021 城云科技(中国)有限公司
 */
@Service
public class ConsumerComponent  {
    @Reference
    private HelloService helloService;

    public String sayHello(String name){
        return helloService.sayHello(name);
    }

}
